package cn.wsalix.sys.entity;

import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import lombok.Data;
import lombok.EqualsAndHashCode;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import cn.anlaser.entity.CommonEntity;

@Entity
@Table(name = "LOG")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@DynamicUpdate
@DynamicInsert
@Data
@EqualsAndHashCode(callSuper = false)
public class Log extends CommonEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3918972405166941741L;
	@Column(name = "NAME")
	private String name;
	@Column(name = "CODE")
	private String code;
	private String requestUrl;
	@Lob
	private String remark;
	@Lob
	@Basic(fetch = FetchType.LAZY)
	@Column(name = "content", columnDefinition = "TEXT", nullable = true, length = 100000)
	private String content;// 产品详情
	@Lob
	private String exception;

}
